<form id="da-form-p16" class="da-form" method="post" action="modul/perkara/perkara.proses.php">
<div class="da-form-inline">
	<div class="da-form-row">
		<label class="da-form-label">Nomor Surat</label>
		<div class="da-form-item">
		<?php if(data_tersedia('t_p16',KD_PERKARA)) {
			$dt = mysql_fetch_array(mysql_query("SELECT * FROM t_p16 WHERE kd_perkara='".KD_PERKARA."'"));
			echo 'PRINT- '.$dt['no_surat'].'/0.5.10.3/'.$dt_spdp['jns_pidana'].konversi_tanggal('/m/Y',$dt['tgl_dikeluarkan']);
		} else {
			echo 'PRINT- '.p16_register($dt_spdp['kd_pidana']).'/0.5.10.3/'.$dt_spdp['jns_pidana'].date('/m/Y'); ?>
	<?php	} ?>
		</div>
	</div>
	<div class="da-form-row">
		<label class="da-form-label">Tanggal Surat</label>
		<div class="da-form-item">
		<?php if(data_tersedia('t_p16',KD_PERKARA)) {
			$dt = mysql_fetch_array(mysql_query("SELECT * FROM t_p16 WHERE kd_perkara='".KD_PERKARA."'"));
			if(LEVEL=="superadmin" || LEVEL=="admin") {
				echo '<input type="text"  id="da-tgl-p16-dikeluarkan"  name="tgl_dikeluarkan" value="'.konversi_tanggal('d-m-Y',$dt['tgl_dikeluarkan']).'">';
			} else {
				echo konversi_tanggal('d/m/Y',$dt['tgl_dikeluarkan']);
			}
		} else { ?>
			<input type="text"  id="da-tgl-p16-dikeluarkan"  name="tgl_dikeluarkan">
		<?php } ?>
		</div>
	</div>
</div>
	<div class="btn-row">
		<!--button class="btn"><i class="icol-calendar-2"></i> Riwayat Dokumen</button-->
		<button href="#" id="p21-dialog" class="btn"><i class="icol-printer"></i> Cetak</button>
		<input id="mode-input" type="hidden" name="t4" value="simpan" />
		<input type="hidden" name="kd" value="<?php echo KD_PERKARA ?>" />
	</div>
</form>

<div id="p21-dialog-div" style="display:none;">
	<p id="berkas"></p>
</div>
